﻿using ApiLib.AppStart;
using ApiLib.Common.Attributes;
using SqlSugar;

namespace ApiLib.Models;

/// <summary>
/// 配置表
///</summary>
[Tenant(GlobalConstants.MainDbConfigId), SugarTable("sys_config")]
[Excel("配置文件")]
public class SysConfig : BaseEntityIdentity
{
    /// <summary>
    /// 配置名称 
    ///</summary>
    [Excel("配置名称")]
    [SugarColumn(ColumnName = "name")]
    public string Name { get; set; }

    /// <summary>
    /// 键 
    ///</summary>
    [Excel("键")]
    [SugarColumn(ColumnName = "key")]
    public string Key { get; set; }

    /// <summary>
    /// 值 
    ///</summary> 
    [Excel("值")]
    [SugarColumn(ColumnName = "value")]
    public string Value { get; set; }

    /// <summary>
    /// 是否禁用 
    /// 默认值: 0
    ///</summary>
    [Excel("是否禁用")]
    [SugarColumn(ColumnName = "forbidden")]
    public int? Forbidden { get; set; }

    /// <summary>
    /// 备注 
    ///</summary>
    [Excel("备注")]
    [SugarColumn(ColumnName = "remark")]
    public string Remark { get; set; }
}